package wangjg.mda.lang;

import java.util.HashMap;
import java.util.Map;

public class MyAnnotation extends MyElement {
	private String name;
	private Map<String,Object> parameters=new HashMap<String,Object>();
	
	public Object getParameter(String name){
		return parameters.get(name);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Map<String, Object> getParameters() {
		return parameters;
	}

	public void setParameters(Map<String, Object> parameters) {
		this.parameters = parameters;
	}

	@Override
	public String toString() {
		return "MyAnnotation [name=" + name + ", properties=" + parameters
				+ "]";
	}

}
